home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Nov 90 / MacApp.Tech$ 11⁄2⁄90 / 2292-Undigestible C Heade-Oct90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.6 KB  |  51 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  HIETA1       to LORD2
  2.  
  3. Item forwarded  by  BROSNAHAN.R  to VONEGGER.L
  4.  
  5. Item forwarded  by  LEFFLER1     to GBOND
  6.  
  7. Item forwarded  by  FRED.FORSMAN to HIETA1
  8.  
  9. Item    8101651                         31-Oct-90        16:42PST
  10.  
  11. From:   D4682                           Marx, Peter,PRT
  12.  
  13. To:     MACDTS                          Macintosh Developer Tech Supt
  14.         MACAPP.TECH$                    MacApp Technical
  15.         CPLUS.DEV$                      C++ Interest List--Developers
  16.         CPLUS.APPLE$                    C++ Interest List--Apple Employees
  17.         GRETSCH                         Gretsch, Greg
  18.  
  19. Sub:    Undigestible C Headers
  20.  
  21. Dear Folks:
  22.  
  23. The SoundInput.h header file for System 6.06/6.07 does not work terribly well
  24. with C++ under MPW 3.1 or 3.2b1. Take a declaration such as:
  25.  
  26. #define   a   (256*3)+20
  27. pascal void SuchAProc(void something) = {0x203C,a,20,0xA800};
  28.  
  29. This just does not fly with C++. The compiler garfs on the initialization of a
  30. procedure (or scalar) with "defined" constants. It won't handle assignments
  31. such as this, either:
  32.  
  33. const short int     a = 20 ;
  34. Point aPt = {a, 0} ;
  35.  
  36. Perhaps you should consider these things when designing and releasing the
  37. header files.
  38.  
  39. While we're on the subject, could you also stay away from C++ or MPW C-specific
  40. features such as the "//" comment operator. It wrecks havoc upon older
  41. compilers such as Think C 4.03. I have seen quite a number of programmer's
  42. curse the header's that make heavy use of such things, including Sound.h and
  43. SoundInput.h.
  44.  
  45. Thanks in advance,
  46.  
  47.  
  48. Peter Marx
  49. UCLA Dept. of Medicine
  50.  
  51.